<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">会员管理</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('members/index')}">
        会员id:
        <input type="text" class="form-control" name="id" style="width: 200px;"
               value="{$members['id']|default=''}" placeholder="请输入会员id...">
        手机号:
        <input type="text" class="form-control" name="mobile" style="width: 200px;"
               value="{$members['mobile']|default=''}" placeholder="请输入手机号...">
        <input type="submit" class="btn btn-primary" value="搜索"/>

    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50" style="text-align: center">ID</th>
                <th style="text-align: center">会员名称</th>
                <th style="text-align: center">手机号</th>
                <th style="text-align: center">邮箱</th>
                <th style="text-align: center">备注</th>
                <th style="text-align: center">金额</th>
                <th style="text-align: center">总下载数</th>
                <th style="text-align: center">已下载</th>
                <th style="text-align: center">状态</th>
                <th width="180" style="text-align: center">操作</th>
            </tr>
            </thead>
            <foreach name="user" item="vo">
                <tr>
                    <td align="center"><b>{$vo.id}</b></td>
                    <td align="center">{$vo.user_nickname}</td>
                    <td align="center">{$vo.mobile}</td>
                    <td align="center">{$vo.user_email}</td>
                    <td align="center">{$vo.more}</td>
                    <td align="center">{$vo.coin} 元</td>
                    <td align="center">{$vo.downloads}</td>
                    <td align="center">{$vo.num} 次</td>
                    <td align="center">
                        <if condition="$vo['user_status'] eq '0'">
                            <span class="label label-danger">禁用</span>
                        <elseif condition="$vo['user_status'] eq '1'"/>
                            <span class="label label-success">正常</span>
                        <else/>
                            <span class="label label-warning">未验证</span>
                        </if>
                    </td>
                    <td align="center">
                        <a class="btn btn-xs btn-primary" href="{:url('members/sele',array('id'=>$vo['id']))}">详 情</a>
                        <if condition="$vo['user_status'] eq '1'">
                            <a class="btn btn-xs btn-danger js-ajax-dialog-btn" 
                               href="{:url('members/upd',array('id'=>$vo['id'],'user_status'=>0))}">禁用</a>
                        <else/>
                            <a class="btn btn-xs btn-primary js-ajax-dialog-btn" 
                               href="{:url('members/upd',array('id'=>$vo['id'],'user_status'=>1))}" >通过</a>
                        </if>
                    </td>
                </tr>
            </foreach>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>